package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Userhealthdata entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "userhealthdata", catalog = "monitor")
public class Userhealthdata implements java.io.Serializable {

	// Fields

	private Integer dataId;
	private Integer userId;
	private float diastolicPressure;
	private float systolicPressure;
	private float bloodSugar;
	private float uriaProtein;
	private float weight;
	private Date dataUploadTime;
	private short orderState;
	private Integer doctorId;
	private String orders;
	private Date orderTime;
	private short readState;
	private String remark;
	private short dataReadState;
	private short transferState;
	private String realName;

	// Constructors

	/** default constructor */
	public Userhealthdata() {
	}

	/** minimal constructor */
	public Userhealthdata(Integer userId) {
		this.userId = userId;
	}

	/** full constructor */
	public Userhealthdata(Integer userId, float diastolicPressure,
			float systolicPressure, float bloodSugar, float uriaProtein,
			float weight, Date dataUploadTime, short orderState,
			Integer doctorId, String orders, Date orderTime, short readState,
			String remark, short dataReadState, short transferState,
			String realName) {
		this.userId = userId;
		this.diastolicPressure = diastolicPressure;
		this.systolicPressure = systolicPressure;
		this.bloodSugar = bloodSugar;
		this.uriaProtein = uriaProtein;
		this.weight = weight;
		this.dataUploadTime = dataUploadTime;
		this.orderState = orderState;
		this.doctorId = doctorId;
		this.orders = orders;
		this.orderTime = orderTime;
		this.readState = readState;
		this.remark = remark;
		this.dataReadState = dataReadState;
		this.transferState = transferState;
		this.setRealName(realName);
	}


	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "DataID", unique = true, nullable = false)
	public Integer getDataId() {
		return this.dataId;
	}

	public void setDataId(Integer dataId) {
		this.dataId = dataId;
	}

	@Column(name = "UserID")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "DiastolicPressure")
	public float getDiastolicPressure() {
		return this.diastolicPressure;
	}

	public void setDiastolicPressure(float diastolicPressure) {
		this.diastolicPressure = diastolicPressure;
	}

	@Column(name = "SystolicPressure")
	public float getSystolicPressure() {
		return this.systolicPressure;
	}

	public void setSystolicPressure(float systolicPressure) {
		this.systolicPressure = systolicPressure;
	}

	@Column(name = "BloodSugar")
	public float getBloodSugar() {
		return this.bloodSugar;
	}

	public void setBloodSugar(float bloodSugar) {
		this.bloodSugar = bloodSugar;
	}

	@Column(name = "UriaProtein")
	public float getUriaProtein() {
		return this.uriaProtein;
	}

	public void setUriaProtein(float uriaProtein) {
		this.uriaProtein = uriaProtein;
	}

	@Column(name = "Weight")
	public float getWeight() {
		return this.weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	@Column(name = "DataUploadTime")
	public Date getDataUploadTime() {
		return this.dataUploadTime;
	}

	public void setDataUploadTime(Date dataUploadTime) {
		this.dataUploadTime = dataUploadTime;
	}

	@Column(name = "OrderState")
	public short getOrderState() {
		return this.orderState;
	}

	public void setOrderState(short orderState) {
		this.orderState = orderState;
	}

	@Column(name = "DoctorID")
	public Integer getDoctorId() {
		return this.doctorId;
	}

	public void setDoctorId(Integer doctorId) {
		this.doctorId = doctorId;
	}

	@Column(name = "Orders")
	public String getOrders() {
		return this.orders;
	}

	public void setOrders(String orders) {
		this.orders = orders;
	}

	@Column(name = "OrderTime")
	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	@Column(name = "ReadState")
	public short getReadState() {
		return this.readState;
	}

	public void setReadState(short readState) {
		this.readState = readState;
	}

	@Column(name = "Remark", length = 4000)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "DataReadState")
	public short getDataReadState() {
		return this.dataReadState;
	}

	public void setDataReadState(short dataReadState) {
		this.dataReadState = dataReadState;
	}

	@Column(name = "TransferState")
	public short getTransferState() {
		return this.transferState;
	}

	public void setTransferState(short transferState) {
		this.transferState = transferState;
	}

	@Column(name = "RealName", length = 50)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

}